var dialog ={
	//错误弹出层
	error: function  (message) {
		layer.open({
			content:message,
			icon:2,
			title:'错误提示',
		});
	},
	
	//成功弹出层
	success: function  (message,url) {
		layer.open({
			content:message,
			icon:1,
			yes: function  () {
				location.href=url;
			},
		});
	},
	
	//确认弹出层
	confirm : function  (message,url) {
		layer.open({
			content: message,
			icon:3,
			btn:['是','否'],
			yes: function  () {
				location.href=url;
			},
		});
	},
	
	
	//无需跳转到指定的页面的弹出层
	toconfirm : function  (message) {
		layer.open({
			content:message,
			icon:3,
			btn:['确定'],
		});
	},
	
	
	tips : function  (message) {
		layer.msg(message, {
		  icon: 1,
		  time: 2000 
		}, function(){
		
		});   
	},
	
	jump : function  (message,url) {
		layer.msg(message, {
		  icon: 1,
		  time: 1000 
		}, function(){
		  location.href=url;
		});   
	},
}
